<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue-开始</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<script>
    var test = { 
    	a: 1,
    	b:"数据1",
    	c:[1,2,3,4,5],
    	d:{
    		name:"对象数据名",
    		data:88,
    		fn:function(){
    			console.log("测试对象方法");
    		}
    	}
    };
    var vm = new Vue({
        data: test
    });
    console.log(vm.a);
    console.log(vm.b);
    console.log(vm.c);
    console.log(vm.c.length);
    console.log(vm.d);
    console.log(vm.d.name);
    vm.d.fn();
</script>
</body>
</html>